package mysql

import (
	"layouts/component_manager"
	"reflect"
)

const (
	PackageName  = "mysql"
)

type StorageAgent struct {

}

func (storage *StorageAgent) Get() *StorageAgent {
	return storage
}

func (storage *StorageAgent) Component() (string, reflect.Value) {
	return PackageName, reflect.ValueOf(&StorageAgent{})
}

func AddToContainer(m *component_manager.Manager) error {
	return m.Add(Connect(true).Component())
}